import request from '@/utils/request'

// 查询工艺与工序关联列表
export function listArtProcessRelation(query) {
  return request({
    url: '/ruoyiyinzheng/artProcessRelation/list',
    method: 'get',
    params: query
  })
}

// 查询工艺与工序关联详细
export function getArtProcessRelation(id) {
  return request({
    url: '/ruoyiyinzheng/artProcessRelation/' + id,
    method: 'get'
  })
}

// 新增工艺与工序关联
export function addArtProcessRelation(data) {
  return request({
    url: '/ruoyiyinzheng/artProcessRelation',
    method: 'post',
    data: data
  })
}

// 修改工艺与工序关联
export function updateArtProcessRelation(data) {
  return request({
    url: '/ruoyiyinzheng/artProcessRelation',
    method: 'put',
    data: data
  })
}

// 删除工艺与工序关联
export function delArtProcessRelation(id) {
  return request({
    url: '/ruoyiyinzheng/artProcessRelation/' + id,
    method: 'delete'
  })
}
